/*
 * Copyright 2022-2029 heshuixing(https://gitee.com/heshuixing)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mercury.ec.framework.air.core.client.dto.search.detr;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

import static com.mercury.ec.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * DETR 行程信息
 *
 * @author hesx
 */
@Schema(description = "管理后台 - DETR航段 DTO")
@Data
public class AirDetrRouteRespDTO {

    @Schema(description = "序号", example = "1")
    private Integer serialNo;

    @Schema(description = "航司代码", example = "MU")
    private String airlineNo;

    @Schema(description = "承运航司代码", example = "MU")
    private String carrierAirlineNo;

    @Schema(description = "航班号", example = "MU1234")
    private String flightNo;

    @Schema(description = "舱位", example = "Y")
    private String cabin;

    @Schema(description = "折扣", example = "0.8")
    private BigDecimal discount;

    @Schema(description = "票价级别FareBasis", example = "ZPR7WNNP")
    private String fareBasis;

    @Schema(description = "出发城市三字码", example = "CAN")
    private String depart;

    @Schema(description = "到达城市三字码", example = "HKG")
    private String arrive;

    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @Schema(description = "航班日期", example = "2024-11-04")
    private LocalDate flightDate;

    @Schema(description = "出发时间", example = "08:00")
    private String departTime;

//    @Schema(description = "到达时间", example = "18:00")
//    private String arriveTime;

    @Schema(description = "出发航站楼", example = "T1")
    private String departTerminal;

    @Schema(description = "抵达航站楼", example = "T2")
    private String arriveTerminal;

    @Schema(description = "行李额", example = "20kg")
    private String baggageWeight;
}
